package com.tbit.uqbike.service.business;

import com.tbit.uqbike.object.business.OrderInfo;
import com.tbit.uqbike.object.business.PageData;
import com.tbit.uqbike.object.pojo.OrderLog;
import com.tbit.uqbike.object.pojo.bo.MannedBatchBindBO;
import com.tbit.uqbike.object.value.LoginInfo;

import java.util.List;

/**
 * 终端控制
 *
 * @author Leon
 * 2017年2月24日 下午4:09:17
 */
public interface TerControlService {

    public OrderInfo getOrderInfo(String userCode, String controlType, String paramName, String desc, Integer businessCode);

    /**
     * 发送远程指令
     *
     * @param loginInfo
     * @param orderInfo
     * @return
     */
    String sendControl(LoginInfo loginInfo, OrderInfo orderInfo);

    /**
     * 终端回复处理
     *
     * @param serNO
     * @param controlRet
     */
    void respHandle(String serNO, String controlRet, String paramRet, List<String> picList);

    void sendRspHandle(String serNO, String controlRet);

    OrderInfo getOrderRsp(LoginInfo loginInfo, String serNo);

    PageData<List<OrderLog>> queryOrderHis(LoginInfo li, Integer rowCount, Integer pageNO,
                                           Long startDt, Long endDt, String userCode, String machineNO,
                                           String phone,Integer accountUserId,Integer brandId);

    /**
     * 载人设备绑定
     *
     */
    void mannedBinding(MannedBatchBindBO bo);
}